<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml">
	
	<ui:param name="pvb" value="#{commonContentViewBean.parent}" />
	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{pageViewBean.id}" />
	<ui:param name="compTitle" value="报案人/受害人信息查看" />
	<ui:param name="compToggleable" value="true" />
	
	
	<ui:define name="compContent">
	<div style="overflow:auto;">
		<ui:decorate template="/layout/input/editable-template.xhtml">			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="name" />
				<ui:param name="compBean2Id" value="aliasname" />
				<ui:param name="compBean1Lable" value="姓 名" />
				<ui:param name="compBean2Lable" value="别 名" />
				<ui:define name="compBean1Content">
					    <h:outputText id="#{compId}_name" value="#{pageViewBean.name}"
					   />
			    </ui:define>
			    <ui:define name="compBean2Content">
					  <h:outputText id="#{compId}_aliasname" value="#{pageViewBean.aliasname}"
					   />
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate
				template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="sex" />
				<ui:param name="compBean1Lable" value="性别" />
				<ui:define name="compBean1Content">
					<h:outputText id="#{compId}_sex" value="#{pageViewBean.sex}"/>
				</ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="birthday" />
				<ui:param name="compBean2Id" value="ifmarry" />
				<ui:param name="compBean1Lable" value="出生日期" />
				<ui:param name="compBean2Lable" value="婚 否" />
				<ui:define name="compBean1Content">
			    	 <h:outputText id="#{compId}_birthday" value="#{pageViewBean.birthday}"/>
			    </ui:define>
			    <ui:define name="compBean2Content">
			         <h:outputText id="#{compId}_ifmarry" value="#{pageViewBean.ifmarry}"/>
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="idcardno" />
				<ui:param name="compBean2Id" value="telephone" />
				<ui:param name="compBean1Lable" value="身份证号" />
				<ui:param name="compBean2Lable" value="联系电话" />
				<ui:define name="compBean1Content">
			    	<h:outputText id="#{compId}_idcardno" value="#{pageViewBean.idcardno}"
					   />
			    </ui:define>
			    <ui:define name="compBean2Content">
			    	<h:outputText id="#{compId}_telephone" value="#{pageViewBean.telephone}"
					   />
			    </ui:define>
			</ui:decorate>
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="relation" />
				<ui:param name="compBean2Id" value="ifmaincase" />
				<ui:param name="compBean1Lable" value="涉案类型" />
				<ui:param name="compBean2Lable" value="是否主报案人" />
				<ui:define name="compBean1Content">
					   <h:outputText id="#{compId}_relation" value="#{pageViewBean.relation}"
					   />
			    </ui:define>
			    <ui:define name="compBean2Content">
			    	<h:outputText id="#{compId}_ifmaincase" value="#{pageViewBean.ifmaincase}"/>
				
			    </ui:define>
			</ui:decorate>
			
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="reportmode" />
				<ui:param name="compBean2Id" value="evillevel" />
				<ui:param name="compBean1Lable" value="受害形式" />
				<ui:param name="compBean2Lable" value="受害程度" />
				<ui:define name="compBean1Content">
			    	<h:outputText id="#{compId}_reportmode" value="#{pageViewBean.reportmode}"
					   />
			    </ui:define>
			    <ui:define name="compBean2Content">
			    	<h:outputText id="#{compId}_evillevel" value="#{pageViewBean.evillevel}"
					   />
			    </ui:define>
			</ui:decorate>
						
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compBean1Id" value="doordetail" />				
				<ui:param name="compBean2Id" value="addressdetail" />
				<ui:param name="compBean1Lable" value="户籍住址" />
				<ui:param name="compBean2Lable" value="现住地址" />	
				<ui:define name="compBean1Content">
			    	<h:outputText id="#{compId}_doordetail" value="#{pageViewBean.doordetail}"
					   />
			    </ui:define>
			    <ui:define name="compBean2Content">
			        <h:outputText id="#{compId}_addressdetail" value="#{pageViewBean.addressdetail}"
					   />
			    </ui:define>
			</ui:decorate>				
	
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="annex" />
				<ui:param name="compBean1Lable" value="备 注" />
				<h:outputText id="#{compId}_annex" value="#{pageViewBean.annex}" />
			</ui:decorate>
			
		</ui:decorate>
		</div>
	</ui:define>
	
	<ui:define name="compButtons">
		<p:commandButton actionListener="#{casebsjdjAction.saveCaseBsjdj}"
			title="保存"
			oncomplete="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			update="#{pvb.id}_from:#{pvb.id}_tree">
			<h:inputHidden value="#{pageViewBean.id}" />
		</p:commandButton>
		
		<p:commandButton title="关闭"  type="button" onclick="#{commonContentViewBean.id}_dialog.hide();" image="./img/icons/cancel.png"
			value="关闭" style="margin:5px;" />
	</ui:define>
	

</ui:composition>